var insertDocuments = function(db, callback){
    // get ths documents collection
    var collection = db.collection('log');

    // insert some documents
    collection.insertMany([
        {a:1},{a:2},{a:3}
    ],function(err,result){
        assert.equal(err,null);
        assert.equal(3,result.result.n);
        assert.equal(3,result.ops.length);
        callback(result);
    });
};

var commenFunc={
	insertDocuments:insertDocuments
}

module.exports = commenFunc;